#pragma once
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "driver/gpio.h"
#include "esp_system.h"
#include "esp_err.h"
#include "esp_check.h"
#include "esp_log.h"
#include "esp_lcd_panel_io.h"
#include "esp_lcd_touch.h"
#include "esp_lcd_touch_ft5x06.h"
#include "esp_idf_version.h"
#include "esp_heap_caps.h"

#include "bsp_i2c.h"
#include "bsp_st7789.h"

#if CONFIG_USE_OLD_I2C_DRIVER == 0
#define I2C_BUS (i2c_handle)
#else
#define I2C_BUS ((esp_lcd_i2c_bus_handle_t)I2C_PORT)
#endif

void bsp_ft5x06_init();
bool bsp_ft5x06_get_point(uint16_t *x, uint16_t *y);